import notify from 'devextreme/ui/notify';
import { request } from 'umi'

// 底稿初始化
export async function PaperInitialize(zcbfid: string, mbmc: string): Promise<any> {
  const res = await request('/cpasApi/project/initDg', {
    method: 'POST',
    data: {
      zcbfid: zcbfid,
      mbmc: mbmc
    }
  })
  if (res.ok) {
    notify('初始化成功', 'success', 3000);
  } else {
    return res;
  }
}